package com.shopping.dao;

import java.util.List;
import java.util.Map;

import com.shopping.bean.Admin;
import com.shopping.bean.Goods;
import com.shopping.bean.OrderGoods;
import com.shopping.bean.Review;
import com.shopping.bean.User;


/**
 * @author 2165435274
 *
 */
public interface AdminDao {

	List<User> selectAllUser(Map<String,String[]> condition);
	
	int selectUserTotalRows(Map<String,String[]> condition);
	
	int deleteUserById(int userId);
	
	int updateUser(User newUser,User oldUser);
	
	Admin selectAdmin(String adminName,String password);
	
	Admin selectAdminByName(String adminName);
	
	int deleteReviewById(int reviewId);
	
	int updateReview(Review newReview,Review oldReview);
	
	int deleteOrderGoodsById(int oId);
	
	int updateOrderGoods(OrderGoods newOrderGoods,OrderGoods oldOrderGoods);
}
